package example;

public class ClassWithThreadingProblem {
    int nextId;

    public int takeNextId() {
        int id = nextId;
        ++nextId;
        return id;
    }
}
